package com.coffee.admin.service.merchant.dao;

import com.coffee.admin.api.merchant.query.MerchantIntegralLogQuery;
import com.coffee.admin.service.merchant.bean.MerchantIntegralLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MerchantIntegralLogDao {
	public MerchantIntegralLog findById(Integer id);
	
	public MerchantIntegralLog findByIdForUpdate(Integer id);
	
	public List<MerchantIntegralLog> findByIds(@Param("idList") List<Integer> idList);

	public Integer count(@Param("param") MerchantIntegralLogQuery param);

	public List<MerchantIntegralLog> page(@Param("param") MerchantIntegralLogQuery param, @Param("offset") Integer offset, @Param("rows") Integer rows);

	public MerchantIntegralLog findFirst(@Param("param") MerchantIntegralLogQuery param);

	public Integer insert(MerchantIntegralLog param);

	Integer insertBatch(List<MerchantIntegralLog> list);

	public void updateById(@Param("param") MerchantIntegralLog param);
	
	public Integer deleteById(Integer id);
	
	public Integer deleteByIds(List<Integer> idList);
	
}